<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/js/jquery.form.js" ></script>
</head>
<body>
	<div style="width:100%">
		<button id="btn1">1:饿了么爬虫</button></br>
		<form>
		<lable>餐馆ID：</lable><input id="restaurant_id" type="text" value="" name="restaurant_id"/><br/>
		</form>
	</div>
	<script type="text/javascript">
		$("#btn1").bind("click",function(){
			$.ajax({
				url:'http://localhost:8090/eleme/spider',
				type:'post',
				dataType:'json',
				data:$(this).parent().find("form").serialize(),
				asyn:false,
				success:function(data){
					alert(JSON.stringify(data));
				}
			});
		});
	</script>
</body>
</html>